﻿using Nature.Core.Boot;
using Nature.Core.Distributed;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Test.Events;

namespace Test.Domain.EventHandlers
{
    public class EventHandlerBoot:IBoot
    {
        public string Name
        {
            get { return "Test.Boot"; }
        }

        public bool Enabled
        {
            get { return true; }
        }

        public void Boot()
        {
            ServiceBusManager.Subscribe(typeof(TestEvent));
        }

        public IList<string> PreBootList
        {
            get { return null; }
        }
    }
}
